package com.mytrip.service;

import java.util.List;
import java.util.Map;

import com.mytrip.base.service.BaseManager;
import com.mytrip.model.Role;
import com.mytrip.model.RoleModule;

public interface RoleManager extends BaseManager {
	
	public void removeRole(Role role);
	
	public List<Role> findRole(Long backOperatorId);
	
	public Role getRoleById(Long id);
	
	public List<RoleModule> findRoleModuleByRoleId(Long roleId);
	
	public Map<String, RoleModule> findRoleModuleListByBackOperatorId(Long backOperatorId);

	public List<Long> getParentIdListByRoleId(Long id);

	public List<RoleModule> getRoleModuleListByRoleIdParId(Long id,
			Long parentId);

	public List<Role> getRoleListByOperatorId(Long id);

	public Map<String, RoleModule> findAllRoleModuleList();
	
}
